package com.campus.payment.feign;

import com.campus.common.bean.common.Resp;
import com.campus.payment.dto.OrderStatusUpdateDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 订单服务Feign客户端
 *
 * @author ZhaoYuJie
 * @since 2025-01-15
 */
@FeignClient(name = "campus-customer", url = "${service.urls.campus-customer}", path = "/order")
public interface OrderFeignClient {

    /**
     * 更新订单支付状态
     *
     * @param request 订单状态更新请求
     * @return 操作结果
     */
    @PostMapping("/updatePaymentStatus")
    Resp<String> updatePaymentStatus(@RequestBody OrderStatusUpdateDTO request);
}